package com.zmn.mcc.dubbo.interfaces.staff;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.mcc.common.dto.staff.StaffDRO;

import javax.validation.constraints.NotNull;

/**
 * 员工钉钉登录接口
 * @author liubodong
 * @since 2021/03/02 15:17
 */
public interface StaffDingTalkRemoteService {

    /**
     * 员工钉钉二维码登录
     * @param code 临时通行code
     * @return 未校验IP白名单
     */
    ResponseDTO<String> getUserId(String code);

    /**
     * 通过钉钉授权码获取员工信息
     * @param authCode
     * @return
     */
    ResponseDTO<StaffDRO> getStaffByAuthCode(@NotNull(message = "授权码不能为空") String authCode);

}
